import { _decorator, Component, Node } from "cc";
import { ISeat } from "../../common";

const { ccclass, property } = _decorator;
@ccclass('SeatInTableManager')
export class SeatInTableManager extends Component {
    seat: ISeat;
    direction: number;
    playerId: number;
    onLoad() {
        this.node.on(Node.EventType.TOUCH_START, this.seatTapHandle, this)
    }
    seatTapHandle() {
        if (this.playerId) {
            console.log('查看信息');
        } else {
            console.log('进入房间');
        }
    }
    protected onDestroy(): void {
        this.node.off(Node.EventType.TOUCH_START, this.seatTapHandle, this)
    }




}

